package pwd.allen.construct.decorator;

import pwd.allen.construct.common.IConnection;

/**
 * @author 门那粒沙
 * @create 2021-05-20 20:47
 **/
public class MyConnectionDecorator extends ConnectionDecorator {
    public MyConnectionDecorator(IConnection connection) {
        super(connection);
    }

    @Override
    public void pingConnection(String host, int port, String dbName) {
        super.pingConnection(host, port, dbName);
        System.out.println("装饰上新的功能");
    }
}
